package com.yanqu.road.server.manger.system;

import com.alibaba.fastjson.TypeReference;
import com.yanqu.road.entity.servercenter.ChannelSystemConfig;
import com.yanqu.road.entity.servercenter.ServerInfo;
import com.yanqu.road.entity.systemloop.SystemLoopData;
import com.yanqu.road.logic.redis.RedisKeyDefineHelper;
import com.yanqu.road.logic.redis.RedisManger;
import com.yanqu.road.server.GameServer;
import com.yanqu.road.server.TempMgr;
import com.yanqu.road.server.manger.ChannelSystemConfigMgr;
import com.yanqu.road.server.manger.ServerListMgr;
import com.yanqu.road.server.manger.SystemLoopMgr;

import java.util.HashMap;
import java.util.Map;

public class GameSystemLoopMgr extends SystemLoopMgr {
    @Override
    public boolean reloadData() throws Exception {
        ServerInfo serverInfo = ServerListMgr.getServerInfo(GameServer.getInstance().getServerId());
        if (serverInfo != null) {
            reloadDataFromRedis(serverInfo.getChannelId());
        }
        return true;
    }

}
